﻿using Senparc.Weixin.QY.AdvancedAPIs;
using Senparc.Weixin.QY.AdvancedAPIs.MailList;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common.DepartmentApi
{
    public class Department
    {
        /// <summary>
        /// 获取部门列表
        /// </summary>
        /// <returns></returns>
        public static GetDepartmentListResult getAllDepartment()
        {
            return MailListApi.GetDepartmentList(UserApi.User.accesstoken());
        }
    }
}
